using System;
using System.Collections.Generic;
using PugLib.Extensions.Collections;

namespace PugLib.Test
{
    class Program
    {
        static void Main(string[] args)
        {

            //TestPatterns();


            //TestMap();
            //TestParallelMap();

            //TestWeekendCounter();





            // TestDoAsync();


            Console.WriteLine();
            //string results = testResults.ToString();
            //Console.WriteLine(results);
            Console.WriteLine();

            Console.WriteLine("All tests completed...reading key");
            Console.ReadKey();
        }







        private static void TestParallelMap()
        {
            List<int> source = new List<int> { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            var output = source.ParallelMap(x => (x * x));
            Console.WriteLine(StringFormatter.FormatData(",", source));
            Console.WriteLine(StringFormatter.FormatData(",", output));
        }


    }

}

